#{extends 'common/myHeader.html' /}
#{set title:'详情' /} 
<div class="layui-form">
	<table class="layui-table mag0">
	    <tbody>
#foreach( $field in $fieldList )
#if(${field.showType}=="date")
		<tr>
			<td >${field.comment}：</td>
			<td>${${model.modelL}?.${field.columnName}?.format('yyyy-MM-dd')}
			</td>
		</tr>
#elseif(${field.showType}=="datetime")
		<tr>
			<td >${field.comment}：</td>
			<td>${${model.modelL}?.${field.columnName}?.format('yyyy-MM-dd HH:mm:ss')}
			</td>
		</tr>
#elseif(${field.inputType}=="htmleditor")
		<tr>
			<td >${field.comment}：</td>
			<td>${${model.modelL}?.${field.columnName}?.raw()}
			</td>
		</tr>
#elseif(${field.inputType}=="file")
		<tr>
			<td >${field.comment}：</td>
			<td>#{img src:"${${model.modelL}?.${field.columnName}}",id:"${field.columnName}src", name:"image",class:"xf_ht_rjsc_zlsz_img",alt:""}#{/img}
			</td>
		</tr>
#elseif(${field.inputType}=="checkbox")
		<tr>
			<td >${field.comment}：</td>
			<td>
#foreach($item in $field.inputValueMap.entrySet())
				<input type="checkbox" name="${field.field}" value="$!{item.key}" title="$!{item.value}" disabled="disabled" style="display: inline" disabled="disabled">$!{item.value}
#end
			</td>
		</tr>
#elseif(${field.inputType}=="select")
#if($field.inputValueMap)
		<tr>
			<td >${field.comment}：</td>
			<td>
#foreach($item in $field.inputValueMap.entrySet())
#{ if ${model.modelL}?.${field.columnName}==$item.key} $!{item.value} #{/if}
#end
			</td>
		</tr>
#elseif($field.inputType == "select"&&${field.inputValueTwo} != "")
		<tr>
			<td >${field.comment}：</td>
			<td>${${model.modelL}?.${field.columnName}_name}</td>
		 </tr>
#end
#elseif(${field.showType}=="show")
		<tr>
			<td >${field.comment}：</td>
			<td>${${model.modelL}?.${field.columnName}}
			</td>
		</tr>
#end
#end
	    </tbody>
	</table>
</div>
<script type="text/javascript">
	$(function(){ 
#foreach($field in $fieldList)
#if(${field.inputType}=="checkbox")
    
        //初始化 复选框
	    var ${field.field}list = '${${model.modelL}?.${field.field}}'.split(',');
		$("input:checkbox[name='${field.field}']:checkbox").each(function(i) {
	      if (${field.field}list.inArray($(this).val())) {
	        $(this).attr("checked","checked");
	      } 
	    });
#end
#end
    }); 
</script>